package com.bwie.controller;
import com.bwie.pojo.Menu;
import com.bwie.service.Impl.MenuServiceImpl;
import com.bwie.service.MenuService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
* (t_menu)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/menu/menu")
public class MenuController {
/**
* 服务对象
*/
    @Autowired
    private MenuService menuService;

    /**
     * 树形菜单表格
     * @param pageInfoVo
     * @return
     */
    @PostMapping(value = "/getTreeMenu")
    public R getTreeMenu(
            @RequestBody PageInfoVo pageInfoVo
            ){
        return menuService.getTreeMenu(pageInfoVo);
    }
}
